//
//  Student.m
//  base_m_04
//
//  Created by China Dragon on 2023/1/25.
//

#import "Student.h"

@implementation Student
-(void)setAge:(int)age{
    _age = age;
}

- (int)age{
    return _age;
}

-(void)setNo:(int)no{
    _no = no;
}

- (int)no{
    return _no;
}

- (id)initWithAge:(int)age{
    if(self = [super init]){//判空
        _age = age;
    }
    return self;
}

@end
